function ShowTab(sTabLayers,sTabs,sImageNameBases,iIndex)
{
	var aTabLayers = sTabLayers.split(",");
	var aTabs = sTabs.split(",");
	var aImageNameBases = sImageNameBases.split(",");
	var i = 0;

}


function MouseOutTab(sTabs, sImageNameBases, iIndex)
{

	var aTabs = sTabs.split(",");
	var aImageNameBases = sImageNameBases.split(",")
	var sTabId = aTabs[iIndex];
	var sTabName = aImageNameBases[iIndex];
}



function ExpandCollapse(sDivIndex)
{
	if (document.getElementById("tablayer-result-" + sDivIndex).style.display == "block")
	{
		document.getElementById("tablayer-result-" + sDivIndex).style.display = "none";
	}
	else
	{
		document.getElementById("tablayer-result-" + sDivIndex).style.display = "block";
	}
}

function ExpandAll(max)
{
	var imgExpandAll = document.getElementById("imgExpandAll");
	var sDivState = "";
    var nLinkTop = document.getElementById("nextLinkTop");
    var nLinkBottom = document.getElementById("nextLinkBottom");
    var pLinkTop = document.getElementById("prevLinkTop");
    var pLinkBottom = document.getElementById("prevLinkBottom");

	if (imgExpandAll.src.indexOf("collapseall") > 0)
	{
		// do collapse all
		sDivState = "none"
		sExpandOrCollapse = "expand";

        // turn off expandAll tag
        if ( nLinkTop && nLinkBottom ) {
            if ( nLinkTop.href.indexOf("expandAll=1") > 0 ) { 
				nLinkTop.href = nLinkTop.href.replace("expandAll=1", "expandAll=0"); 
				nLinkBottom.href = nLinkBottom.href.replace("expandAll=1", "expandAll=0"); 
			} else { 
				nLinkTop.href += "&expandAll=0";
				nLinkBottom.href += "&expandAll=0";
			}
        }
        if ( pLinkTop && pLinkBottom ) {
            if ( pLinkTop.href.indexOf("expandAll=1") > 0 ) { 
				pLinkTop.href = pLinkTop.href.replace("expandAll=1", "expandAll=0");
				pLinkBottom.href = pLinkBottom.href.replace("expandAll=1", "expandAll=0"); 
			} else { 
				pLinkTop.href += "&expandAll=0";
				pLinkBottom.href += "&expandAll=0";
			}
        }
		if ( self.location.href.indexOf("expandAll=1") > 0 ) {
			self.location.href = self.location.href.replace("expandAll=1", "expandAll=0");
		} 
	} else {
		// do expand all
		sDivState = "block"
		sExpandOrCollapse = "collapse";

		// turn on expandAll tag
        if ( nLinkTop && nLinkBottom ) {
            if ( nLinkTop.href.indexOf("expandAll=0") > 0 ) { 
				nLinkTop.href = nLinkTop.href.replace("expandAll=0", "expandAll=1");
				nLinkBottom.href = nLinkBottom.href.replace("expandAll=0", "expandAll=1"); 
			} else { 
				nLinkTop.href += "&expandAll=1"; 
				nLinkBottom.href += "&expandAll=1";
			}
        }
        if ( pLinkTop && pLinkBottom ) {
            if ( pLinkTop.href.indexOf("expandAll=0") > 0 ) { 
				pLinkTop.href = pLinkTop.href.replace("expandAll=0", "expandAll=1");
				pLinkBottom.href = pLinkBottom.href.replace("expandAll=0", "expandAll=1"); 
			} else { 
				pLinkTop.href += "&expandAll=1";
				pLinkBottom.href += "&expandAll=1"; 
			}
        }
		if ( self.location.href.indexOf("expandAll=0") > 0 ) {
			self.location.href = self.location.href.replace("expandAll=0", "expandAll=1");
		} 
	}
	
	// update search result items
	for ( i=1; i<=max; i++ )
	{
		document.getElementById("tablayer-result-" + i).style.display = sDivState;
	}
}

function ExpandAllFlag(max) {
    if ( self.location.href.indexOf("expandAll=1") > 0 ) {
        ExpandAll(max);
    }
}

function Expand()
{

}


